﻿using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace TomAndJerryMidnightSnack
{
    public abstract class ItemSprite
    {
        public InfoItem infor;
        public Texture2D itemTexture;
        public bool isActive = true;
        public int mode;

        public ItemSprite(Texture2D texture)
        {
            infor = new InfoItem();
            itemTexture = texture;
            mode = 0;
        }

        public virtual void Update(GameTime gameTime)
        {

        }

        public virtual void Draw(SpriteBatch spriteBatch)
        {
            if (isActive)
            {
                spriteBatch.Draw(itemTexture, infor.Pos1, null, Color.White, infor.Angle, Vector2.Zero, infor.Scale, SpriteEffects.None, 0f);
            }
        }
    }
}
